//
// Created by deepin on 2020/11/11.
//
#include <iostream>
#include <new>
using namespace std;
const int BUF = 512;
const int N = 5;
char buffer[BUF];
/*int main ()
{
  double *pd1,*pd2;
  int i;
  pd1 = new double [N]; // use heap
  pd2 = new (buffer) double [N]; // use buffer array
  for(i=0;i<N;++i)
    pd2[i]=pd1[i]=1000+20*i;
  cout << "heap" <<pd1<<endl;
  cout << "static:" <<(void *)buffer<<endl;
  return 0;
}*/
